<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@taglib prefix="b" uri="/blog-taglib" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="l" uri="/lion-taglib" %>
<h3 id="respond">Leave a Reply</h3>
<c:if test="${article.commentEnable }">
	<script type="text/javascript"  src="${webcontext }/res/js/jquery.min.js"></script>
	<c:if test="${param.add==1 }">
	</c:if>
	<form action="${webcontext }/blog/comment/post" method="post" id="commentform">
		<p>
			<input type="text" name="name" id="name" value="" size="40" tabindex="1" />
			<label for="name"><small>Name (required)</small></label>
		</p>
		<p>
			<input type="text" name="email" id="email" value="" size="40" tabindex="2" />
			<label for="email"><small>Mail (will not be published) (required)</small></label>
		</p>
		<p><textarea name="content" id="comment" cols="60" rows="10" tabindex="4"></textarea></p>
		<p>
			<input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
			<input type="hidden" name="article" value="${article.id }" />
		</p>
	</form>
	<script type="text/javascript" >
		$('commentform').submit(function(){
			
		});
	</script>
</c:if>
<c:if test="${!article.commentEnable }">
	<p class="nocomments">Comments are closed.</p>
</c:if>
<h3 id="comments">${comments.length } Responses' to &#8220;${article.title }&#8221;</h3>
<ol class="commentlist">
	<b:comments var="comment">
		<li class="" id="comment-${comment.id }">
			<div class="commentmetadata"><strong>${comment.name }</strong>,at ${l:date('yyyy-MM-dd HH:mm',comment.createTime) } 说&#58;</div>
			${l:escapeNoBr(comment.content) }
		</li>
	</b:comments>
</ol>
